<div class="fcj_menu">
<?= $this->partial('pm/pmlayout.phtml', array(
									'flid' => $this->flid, 
									'flArray' => $this->flArray,
									'fromto' => $this->fromto
									)
	); 
?>
<script>
function checkform(){
	var to_who=$("input[name='to_who']").val();
	if(trim(to_who)==""){
		parent.showMsg('Please input who!');
		return false;
	}
	var subject=$("input[name='subject']").val();
	if(trim(subject)==''){
		parent.showMsg('Please input subject!');
		return false;
	}

	commonEffection.setLoading();
	$('#pmForm').submit();
}
</script>
<form name="pmForm" id="pmForm" action="adminb<?=CHOSING_DE?>pm<?=CHOSING_DE?>doadd" method="post">
<table class="list" border="1" cellpadding="0" cellspacing="0" bordercolor="#b9b9b9" style="border-collapse:collapse">    	
	    <tr>
	    	<td align="right" style="text-align: right; padding-right: 5px;" width="100">Send To:</td>
	    	<td align="left" style="text-align: left; padding-left: 5px;">
	    	<input type="text" name="to_who" value="admin" onblur="checkinput(this.value)"/>　<input value="1" type="radio" name="idUsername" checked /> username <input value="0" type="radio" name="idUsername" /> userID</div>
			</td>    	
	    </tr>
	    <tr>
	    	<td align="right" style="text-align: right; padding-right: 5px;">Type:</td>
	    	<td align="left" style="text-align: left; padding-left: 5px;">
	    	<?=$this->flArray[$this->mustFlid-1]['en_flname']?><input name="flid" type="hidden" value="<?=$this->flArray[$this->mustFlid-1]['flid']?>" />
			</td>    	
	    </tr>	    
	    <tr>
	    	<td align="right" style="text-align: right; padding-right: 5px;">Subject:</td>
	    	<td align="left" style="text-align: left; padding-left: 5px;">
	    	<input type="text" value="<?=$this->subject?>" name="subject" onblur="checkinput(this.value)"/>
			</td>    	
	    </tr>
	    <tr>
	    	<td align="right" style="text-align: right; padding-right: 5px;">Content:</td>
	    	<td align="left" style="text-align: left; padding-left: 5px;">
	    	<?=$this->oFCKeditor->create();?>　
			</td>    	
	    </tr>
	     <tr>
	    	<td align="right" style="text-align: right; padding-right: 5px;"></td>
	    	<td align="left" style="text-align: left; padding-left: 5px;">
	    	<input onclick="checkform();" type="button" class="subtn spbg2" value="send" />
			</td>    	
	    </tr>	    
	</table>
</form>
</div>